<template>
	<!-- head标题 -->
	<view class="activity-box">
		<view class="activity-head">
			<!-- 渐变色 -->
			<view class="activity-head-lab"></view>
			<view class="activity-title" :style="size?size:''">
				{{title}}
			<image v-if="isDownIcon" class="icon" src="@/static/image/icon/down-icon.png"></image>
			</view>
			<view class="desc" v-if="typeIns&&typeIns.courses_learning">共{{typeIns&&typeIns.courses_learning.total?typeIns.courses_learning.total:0}}门课 已学{{typeIns&&typeIns.courses_learning.learned?typeIns.courses_learning.learned:0}}门</view>
		</view>
		<!--  -->
	</view>
</template>
<script>
	export default {
		name:'z-head-lab',
		props:['title','size','isDownIcon','typeIns'],
		data() {
			return {
			}
		}
	}
</script>
<style lang="scss">
	// 活动模块
	.activity-box {
		width: 750rpx;
		margin: 0 auto;
		// position: relative;
		
		.activity-head {
			position: relative;
.desc{
			position: absolute;
			right: 90rpx;
			bottom: 2rpx;
			width: auto;
			font-size: 24rpx;
			font-weight: 400;
			letter-spacing: 0px;
			color: rgba(71, 71, 71, 1);
			text-align: left;
		}
			.activity-head-lab {
				width: 62rpx;
				height: 62rpx;
				margin-left: 14rpx;
				opacity: 1;
				will-change: transform, filter;
				position: relative;
				border-radius: 50rpx;
				background: linear-gradient(128.84deg, rgba(253, 145, 200, 1) 0%, rgba(255, 255, 255, 0) 100%);
				filter: blur(20rpx);

			}

			.activity-title {
				font-size: 36rpx;
				position: absolute;
				top: 10rpx;
				display: flex;
				align-items: center;
				left: 36rpx;
				filter: blur(0);
				font-weight: 500;
				letter-spacing: 0px;
				color: rgba(0, 0, 0, 1);
				text-align: left;
				vertical-align: top;
				.icon{
					width: 28rpx;
					margin-left: 8rpx;
					height: 28rpx;
					object-fit: cover;
				}
			}

		}


	}
</style>